import axios from 'axios'
import router from '../src/router'
import { Message, Loading } from 'element-ui'

let loading
function startLoading() {
    loading = Loading.service({
        lock: true,
        text: "拼命加载中....",
        background: 'rgba(0,0,0,0.7)'
    })
}

function endLoading() {
    loading.close();
}

export default axios